<template>
  <a-layout id="components-layout-demo-side" style="min-height: 100vh">
    <!-- 侧边框 -->
    <a-layout-sider v-model="collapsed" collapsible>
      <div class="logo" />
      <a-menu theme="dark" :default-selected-keys="['1']" mode="inline">
        <a-menu-item key="1">
          <router-link to="/look">
            <a-icon type="slack" />
            <span>企业看板</span>
          </router-link>
        </a-menu-item>
        <a-menu-item key="2">
          <router-link to="/recruit">
            <a-icon type="gold" />
            <span>招聘账号管理</span>
          </router-link>
        </a-menu-item>
        <a-menu-item key="3">
          <router-link to="/basic">
            <a-icon type="profile" />
            <span>企业基本信息</span>
          </router-link>
        </a-menu-item>
        <a-menu-item key="4">
          <router-link to="/big">
            <a-icon type="book" />
            <span>企业大事记</span>
          </router-link>
        </a-menu-item>
        <a-menu-item key="5">
          <router-link to="/tname">
            <a-icon type="heat-map" />
            <span>企业实名认证</span>
          </router-link>
        </a-menu-item>
        <a-menu-item key="6">
          <router-link to="/money">
            <a-icon type="account-book" />
            <span>公司缴费台账</span>
          </router-link>
        </a-menu-item>
        <a-menu-item key="7">
          <router-link to="/pmanage">
            <a-icon type="contacts" />
            <span>公司职位管理</span>
          </router-link>
        </a-menu-item>
        <a-menu-item key="8">
          <router-link to="/interview">
            <a-icon type="notification" />
            <span>面试邀请</span>
          </router-link>
        </a-menu-item>
      </a-menu>
    </a-layout-sider>
    <a-layout>
      <!-- 头 -->
      <a-layout-header style="background: #fff; padding: 0">
        <div class="logout">
          <a-button @click="logout">退出</a-button>
        </div>
      </a-layout-header>
      <!-- 中间主体 -->
      <a-layout-content
        :style="{
          padding: '24px',
        }"
      >
        <router-view></router-view>
      </a-layout-content>
      <!-- 脚 -->
      <a-layout-footer style="text-align: center">
        WO DE MA YA ©2021 Designed by WAHAHA
      </a-layout-footer>
    </a-layout>
  </a-layout>
</template>
<script>
export default {
  name: 'Fe',
  data() {
    return {
      collapsed: false,
    }
  },
  methods: {
    logout() {
      window.sessionStorage.clear()
      this.$router.push('/')
    },
  },
}
</script>
<style scoped>
#components-layout-demo-side .logo {
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  margin: 16px;
}
.logout {
  float: right;
  padding-right: 30px;
}

/* 全局样式 */
html,body,#app{
    height: 100%;
    margin: 0;
    padding: 0;
}
.el-breadcrumb {
    padding-bottom: 15px;
    font-size: 13px;
}
.el-table {
    margin-top: 15px;
}
.el-pagination {
    margin-top: 15px;
}
.el-carousel {
    margin-top: 15px;
}

</style>